package com.system.controller.advice;

import org.springframework.security.access.AccessDeniedException;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;

@ControllerAdvice
public class ExceptionHandlerController {

	@ExceptionHandler(AccessDeniedException.class)
	public String handlerException() {
		return "403";
	}
	
	@ExceptionHandler(RuntimeException.class)
	public String handlerException2() {
		return "500";
	}
}
